package cn.fresh.xuanyuan.module.member.service.user;

import cn.fresh.xuanyuan.framework.common.pojo.PageParam;
import cn.fresh.xuanyuan.framework.common.pojo.PageResult;
import cn.fresh.xuanyuan.module.member.dal.dataobject.user.MemberLikeDO;
import cn.fresh.xuanyuan.module.member.vo.MemberCollectVO;
import cn.fresh.xuanyuan.module.member.vo.MemberLikeVO;

public interface MemberCollectService {

    int addLike(Long spuId, Long userId);

    int addCollect(Long spuId, Long userId);

    int subLike(Long spuId, Long userId);

    int subLikeById(MemberLikeDO likeDO);

    void removeCollect(Long id, Long userId);

    PageResult<MemberCollectVO> myCollectList(Long userId, PageParam pageParam);

    MemberLikeVO isLike(Long userId, Long spuId);

    MemberCollectVO isCollect(Long userId, Long spuId);
}
